<div class="am-u-sm-12 am-u-md-6">
    <div class="am-form-group">
        <div class="am-btn-group am-btn-group-xs">
            <a class="j-add am-btn am-btn-default am-btn-success" href="javascript:void(0);" data-tab="<?= $tab ?>">
                <span class="am-icon-plus"></span> 添加
            </a>
            <a class="j-del am-btn am-btn-default am-btn-danger" href="javascript:void(0);">
                <span class="am-icon-trash-o"></span> 删除
            </a>
            <a class="j-act am-btn am-btn-default am-btn-secondary" href="javascript:void(0);">
                <span class="am-icon-save"></span> 审核
            </a>
            <a class="j-ban am-btn am-btn-default am-btn-warning" href="javascript:void(0);">
                <span class="am-icon-archive"></span> 隐藏
            </a>
        </div>
    </div>
</div>
<div class="am-u-sm-12 am-u-md-6">
    <form class="toolbar-form" action="/<{$routeUrl}>/<{$action}>">
    <input type="hidden" name="tab" value="<{$tab}>">
    <div class="am fr">
        <!-- 搜索 -->
        <div class="am-form-group am-fl">
            <div class="am-input-group am-input-group-sm tpl-form-border-form">
                <input type="text" class="am-form-field" name="keyword"
                        placeholder="请输入关键字"
                        value="<{$keyword}>">
                <div class="am-input-group-btn">
                    <button class="am-btn am-btn-default am-icon-search"
                            type="submit"></button>
                </div>
            </div>
        </div>
    </div>
    </form>
</div>


<script>

    $(function () {
        // 添加
        $('.j-add').open('id', "/<{$routeUrl}>/add", '添加');
        // 审核
        $('.j-act').opid('id', "/<{$routeUrl}>/act");
        // 隐藏
        $('.j-ban').opid('id', "/<{$routeUrl}>/ban");
        // 删除
        $('.j-del').opid('id', "/<{$routeUrl}>/del");

        // 状态
        $('.item-act').act('id', "/<{$routeUrl}>/act");
        // 审核
        $('.item-edit').open('id', "/<{$routeUrl}>/edit", '编辑');
        // 删除元素
        $('.item-delete').delete('id', "/<{$routeUrl}>/del", '删除后不可恢复，确定要删除吗？');

        // 授权
        $('.item-auth').open('id', "/<{$routeUrl}>/auth", '授权');

    });

</script>